/**
 * @作者 chengxinxiaofeng
 * @时间 2019年7月20日10:10:54
 */
package com.chinaunicom.tour.sys.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Table;

import com.chinaunicom.tour.sys.entity.base.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
@ApiModel(value = "机票表")
@Table(name = "airplan_ticket")
@Data
@EqualsAndHashCode(callSuper=false)
public class AirplanTicket extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 6665594084507574639L;

    @ApiModelProperty(value = "始发地")
    private String startPlace;

    @ApiModelProperty(value = "目的地")
    private String endPlace;

    @ApiModelProperty(value = "所属航空公司")
    private String company;

    @ApiModelProperty(value = "所属航空公司logo地址")
    private String companyLogo;

    @ApiModelProperty(value = "起飞日期（YYYY-MM-DD，用于前端根据日期搜索机票）")
    private Date startDay;

    @ApiModelProperty(value = "起飞时间")
    private Date startTime;

    @ApiModelProperty(value = "到达时间")
    private Date endTime;

    @ApiModelProperty(value = "原价")
    private BigDecimal originalPrice;

    @ApiModelProperty(value = "打折后价格")
    private BigDecimal discountPrice;

    @ApiModelProperty(value = "保险费")
    private BigDecimal insurePrice;

    @ApiModelProperty(value = "机建费")
    private BigDecimal airportBuildPrice;

    @ApiModelProperty(value = "燃油费")
    private BigDecimal oilPrice;

    @ApiModelProperty(value = "剩余票数")
    private Integer remainCount;
}
